<?php

/**
 * Description of LeftNavigationCss.
 *
 * @author Ian Clarence <ian.clarence@gmail.com>
 */
final class LeftNavigationCss extends ViewResources {
    
    /**
     * The constructor. 
     */    
    public function __construct() {
        parent::__construct();
    }
    
    /**
     * Loading the CSS rules, and returning as an array.
     * 
     * @param array $viewFields
     * @return array
     */
    protected function resources($viewFields = array()) {
        $this->fields[] = ViewCssRule::cssInit(
            'div#left_navigation_article',
            array(
                'position' => 'relative',
                'background-color' => GREEN3,
                'width' => 'auto',
                'height' => 'auto',
                'margin' => '10px'
            )
        );
        
        $this->fields[] = ViewCssRule::cssInit(
            'div#left_navigation_article ul',
            array(                        
                'list-style-type' => 'none'
            )
        );

       $this->fields[] = ViewCssRule::cssInit(
            'div#left_navigation_article ul li a',
            array(
                'color' => '#FFFFFF',
                'font-weight' => 'bold'
            )
        );

        $this->fields[] = ViewCssRule::cssInit(
            'div#left_navigation_article ul li a:hover',
            array(
                'color' => StylesheetView::HOVER_LINK_COLOUR
            )
        );

        $this->fields[] = ViewCssRule::cssInit(
            'div.left.panel',
            array(
                'clear' => 'left',
                'float' => 'left',
                'background-color' => GREEN3,
                'width' => ViewUtils::px(StylesheetView::LEFT_NAVIGATION_WIDTH),
                'top' => '0px',
                'display' => 'inline'
            )
        );
        
        return $this->fields;
    }
    
}